import request from '../utils/request';

export const userlogin = params => {
    return request({
        url: '/api/login',
        method: 'post',
        data: JSON.stringify(params),
        headers:{
            'Content-Type':'application/json'
        },
    });
};

export const logOut = params => {
    return request({
        url: "/api/exit?username=" + params,
        method: "get",
    });
};
